package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * 广告对象
 * Created by Lemon on 11/04/2017.
 */
public class BannerInfo extends BaseModel<BannerInfo> {

    /** 广告图片*/
    public Image image;
    /** 广告点击跳转*/
    public LinkInfo link_info;

    @Override
    public BannerInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            image = new Image().parse(jsonObject.optJSONObject("image"));
            link_info = new LinkInfo().parse(jsonObject.optJSONObject("link_info"));
            return this;
        }
        return null;
    }
}
